<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:SnowmanConsulting.ProductKeyManager.Controls">


    <Style TargetType="{x:Type local:CustomNavigationWindow}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="NavigationWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:msiam="clr-namespace:MS.Internal.AppModel;assembly=PresentationFramework" xmlns:mwt="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic">
                    
                    <Border BorderThickness="{TemplateBinding Border.BorderThickness}" BorderBrush="{TemplateBinding Border.BorderBrush}" Background="{TemplateBinding Panel.Background}">
                        
                        <DockPanel>
                            
                            <Grid Name="NavChrome" Background="Transparent" Height="30" DockPanel.Dock="Top">
                                
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="29" />
                                    <ColumnDefinition Width="26" />
                                    <ColumnDefinition Width="17" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                
                                <!-- <Grid.Background>
                                    
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                        
                                        <LinearGradientBrush.GradientStops>
                                            <GradientStop Color="#FFFFFFFF" Offset="0" />
                                            <GradientStop Color="#FFE3E8F4" Offset="0.5" />
                                            <GradientStop Color="#FFCFD7EB" Offset="0.5" />
                                            <GradientStop Color="#FFE9ECFA" Offset="1" />
                                        </LinearGradientBrush.GradientStops>
                                    </LinearGradientBrush>
                                </Grid.Background> -->
                                
                                <Menu Name="NavMenu" Height="23" Margin="1,0,0,1" VerticalAlignment="Center" Grid.ColumnSpan="3">
                                    
                                    <Menu.Style>
                                        
                                        <Style TargetType="Menu">
                                            
                                            <Style.Resources>
                                                <ResourceDictionary />
                                            </Style.Resources>
                                            
                                            <Setter Property="ItemsControl.ItemsPanel">
                                                
                                                <Setter.Value>
                                                    
                                                    <ItemsPanelTemplate>
                                                        <DockPanel IsItemsHost="True" />
                                                    </ItemsPanelTemplate>
                                                </Setter.Value>
                                            </Setter>
                                            
                                            <Setter Property="FrameworkElement.OverridesDefaultStyle">
                                                
                                                <Setter.Value>
                                                    <s:Boolean>True</s:Boolean>
                                                </Setter.Value>
                                            </Setter>
                                            
                                            <Setter Property="KeyboardNavigation.TabNavigation">
                                                
                                                <Setter.Value>
                                                    <x:Static Member="KeyboardNavigationMode.None" />
                                                </Setter.Value>
                                            </Setter>
                                            
                                            <Setter Property="Menu.IsMainMenu">
                                                
                                                <Setter.Value>
                                                    <s:Boolean>False</s:Boolean>
                                                </Setter.Value>
                                            </Setter>
                                            
                                            <Setter Property="Control.Template">
                                                
                                                <Setter.Value>
                                                    
                                                    <ControlTemplate TargetType="Menu">
                                                        <ItemsPresenter />
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </Menu.Style>
                                    
                                    <MenuItem Padding="0,2,5,0">
                                        
                                        <MenuItem.ItemContainerStyle>
                                            
                                            <Style TargetType="MenuItem">
                                                
                                                <Style.Resources>
                                                    <ResourceDictionary />
                                                </Style.Resources>
                                                
                                                <Setter Property="FrameworkElement.OverridesDefaultStyle">
                                                    
                                                    <Setter.Value>
                                                        <s:Boolean>True</s:Boolean>
                                                    </Setter.Value>
                                                </Setter>
                                                
                                                <Setter Property="HeaderedContentControl.Header">
                                                    
                                                    <Setter.Value>
                                                        <Binding Path="(JournalEntry.Name)" />
                                                    </Setter.Value>
                                                </Setter>
                                                
                                                <Setter Property="ButtonBase.Command">
                                                    
                                                    <Setter.Value>
                                                        <RoutedUICommand>NavigateJournal</RoutedUICommand>
                                                    </Setter.Value>
                                                </Setter>
                                                
                                                <Setter Property="ButtonBase.CommandTarget">
                                                    
                                                    <Setter.Value>
                                                        <Binding Path="TemplatedParent" RelativeSource="{RelativeSource AncestorType=Menu, Mode=FindAncestor, AncestorLevel=1}" />
                                                    </Setter.Value>
                                                </Setter>
                                                
                                                <Setter Property="ButtonBase.CommandParameter">
                                                    
                                                    <Setter.Value>
                                                        <Binding RelativeSource="{RelativeSource Mode=Self}" />
                                                    </Setter.Value>
                                                </Setter>
                                                
                                                <Setter Property="JournalEntryUnifiedViewConverter.JournalEntryPosition">
                                                    
                                                    <Setter.Value>
                                                        <Binding Path="(JournalEntryUnifiedViewConverter.JournalEntryPosition)" />
                                                    </Setter.Value>
                                                </Setter>
                                                
                                                <Setter Property="Control.Template">
                                                    
                                                    <Setter.Value>
                                                        
                                                        <ControlTemplate TargetType="MenuItem">
                                                            
                                                            <Grid Background="#00FFFFFF" Name="Panel" SnapsToDevicePixels="True">
                                                                <Path Stroke="{TemplateBinding TextElement.Foreground}" StrokeThickness="2" StrokeStartLineCap="Triangle" StrokeEndLineCap="Triangle" Name="Glyph" Width="10" Height="10" Margin="7,5,7,5" HorizontalAlignment="Left" SnapsToDevicePixels="False" />
                                                                <ContentPresenter Content="{TemplateBinding HeaderedContentControl.Header}" ContentTemplate="{TemplateBinding HeaderedContentControl.HeaderTemplate}" ContentStringFormat="{TemplateBinding HeaderedItemsControl.HeaderStringFormat}" ContentSource="Header" Margin="24,5,21,5" />
                                                            </Grid>
                                                            
                                                            <ControlTemplate.Triggers>
                                                                
                                                                <Trigger Property="JournalEntryUnifiedViewConverter.JournalEntryPosition">
                                                                    
                                                                    <Setter TargetName="Panel" Property="Panel.Background">
                                                                        
                                                                        <Setter.Value>
                                                                            <SolidColorBrush Color="#FF3399FF" Opacity="0.25" />
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                    
                                                                    <Setter TargetName="Glyph" Property="Path.Data">
                                                                        
                                                                        <Setter.Value>
                                                                            <StreamGeometry>M0,5L2.5,8 7,3</StreamGeometry>
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                    <Setter TargetName="Glyph" Property="FrameworkElement.FlowDirection" Value="{x:Static FlowDirection.LeftToRight}" />
                                                                    <Setter TargetName="Glyph" Property="Shape.StrokeLineJoin" Value="{x:Static PenLineJoin.Miter}" />
                                                                    
                                                                    <Trigger.Value>
                                                                        <x:Static Member="JournalEntryPosition.Current" />
                                                                    </Trigger.Value>
                                                                </Trigger>
                                                                
                                                                <Trigger Property="MenuItem.IsHighlighted">
                                                                    
                                                                    <Setter Property="TextElement.Foreground">
                                                                        
                                                                        <Setter.Value>
                                                                            <DynamicResource ResourceKey="{x:Static SystemColors.HighlightTextBrushKey}" />
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                    <Setter TargetName="Panel" Property="Panel.Background" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
                                                                    
                                                                    <Trigger.Value>
                                                                        <s:Boolean>True</s:Boolean>
                                                                    </Trigger.Value>
                                                                </Trigger>
                                                                
                                                                <MultiTrigger>
                                                                    
                                                                    <MultiTrigger.Conditions>
                                                                        
                                                                        <Condition Property="MenuItem.IsHighlighted">
                                                                            
                                                                            <Condition.Value>
                                                                                <s:Boolean>True</s:Boolean>
                                                                            </Condition.Value>
                                                                        </Condition>
                                                                        <Condition Property="JournalEntryUnifiedViewConverter.JournalEntryPosition" Value="{x:Static JournalEntryPosition.Forward}" />
                                                                    </MultiTrigger.Conditions>
                                                                    
                                                                    <Setter TargetName="Glyph" Property="Shape.Stroke">
                                                                        
                                                                        <Setter.Value>
                                                                            <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                    
                                                                    <Setter TargetName="Glyph" Property="Path.Data">
                                                                        
                                                                        <Setter.Value>
                                                                            <StreamGeometry>M1,5L7,5 M5,1L9,5 5,9</StreamGeometry>
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                </MultiTrigger>
                                                                
                                                                <MultiTrigger>
                                                                    
                                                                    <MultiTrigger.Conditions>
                                                                        
                                                                        <Condition Property="MenuItem.IsHighlighted">
                                                                            
                                                                            <Condition.Value>
                                                                                <s:Boolean>True</s:Boolean>
                                                                            </Condition.Value>
                                                                        </Condition>
                                                                        <Condition Property="JournalEntryUnifiedViewConverter.JournalEntryPosition" Value="{x:Static JournalEntryPosition.Back}" />
                                                                    </MultiTrigger.Conditions>
                                                                    
                                                                    <Setter TargetName="Glyph" Property="Shape.Stroke">
                                                                        
                                                                        <Setter.Value>
                                                                            <SolidColorBrush>#FFFFFFFF</SolidColorBrush>
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                    
                                                                    <Setter TargetName="Glyph" Property="Path.Data">
                                                                        
                                                                        <Setter.Value>
                                                                            <StreamGeometry>M9,5L3,5 M5,1L1,5 5,9</StreamGeometry>
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                </MultiTrigger>
                                                            </ControlTemplate.Triggers>
                                                        </ControlTemplate>
                                                    </Setter.Value>
                                                </Setter>
                                            </Style>
                                        </MenuItem.ItemContainerStyle>
                                        
                                        <MenuItem.Style>
                                            
                                            <Style TargetType="MenuItem">
                                                
                                                <Style.Resources>
                                                    <ResourceDictionary />
                                                </Style.Resources>
                                                
                                                <Setter Property="FrameworkElement.OverridesDefaultStyle">
                                                    
                                                    <Setter.Value>
                                                        <s:Boolean>True</s:Boolean>
                                                    </Setter.Value>
                                                </Setter>
                                                
                                                <Setter Property="Control.Template">
                                                    
                                                    <Setter.Value>
                                                        
                                                        <ControlTemplate TargetType="MenuItem">
                                                            
                                                            <Grid>
                                                                
                                                                <Popup IsOpen="False" Placement="Bottom" VerticalOffset="2" PopupAnimation="{DynamicResource {x:Static SystemParameters.MenuPopupAnimationKey}}" AllowsTransparency="True" Name="PART_Popup" Focusable="False">
                                                                    
                                                                    <mwt:SystemDropShadowChrome Color="#00FFFFFF" Name="Shdw">
                                                                        
                                                                        <Border BorderThickness="1,1,1,1" BorderBrush="{DynamicResource {x:Static SystemColors.ActiveBorderBrushKey}}" Background="{DynamicResource {x:Static SystemColors.MenuBrushKey}}" Name="SubMenuBorder">
                                                                            
                                                                            <ScrollViewer CanContentScroll="True" Style="{DynamicResource {ComponentResourceKey TypeInTargetAssembly=FrameworkElement, ResourceId=MenuScrollViewer}}">
                                                                                <ItemsPresenter Margin="2,2,2,2" KeyboardNavigation.TabNavigation="Cycle" KeyboardNavigation.DirectionalNavigation="Cycle" />
                                                                            </ScrollViewer>
                                                                        </Border>
                                                                    </mwt:SystemDropShadowChrome>
                                                                </Popup>
                                                                
                                                                <Grid Background="#00FFFFFF" Name="Panel" Width="26" HorizontalAlignment="Right">
                                                                    
                                                                    <Border BorderThickness="1,1,1,1" CornerRadius="2,2,2,2" BorderBrush="#B0B5BACE" Name="HighlightBorder" Visibility="Hidden" SnapsToDevicePixels="True">
                                                                        
                                                                        <Border.Background>
                                                                            
                                                                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                                                                
                                                                                <LinearGradientBrush.GradientStops>
                                                                                    <GradientStop Color="#20DDDDDD" Offset="0" />
                                                                                    <GradientStop Color="#80FFFFFF" Offset="1" />
                                                                                </LinearGradientBrush.GradientStops>
                                                                            </LinearGradientBrush>
                                                                        </Border.Background>
                                                                        <Border BorderThickness="1,1,1,1" CornerRadius="1.5,1.5,1.5,1.5" BorderBrush="#A0FFFFFF" />
                                                                    </Border>
                                                                    
                                                                    <Path Data="M0,0L4.5,5 9,0z" Stroke="#FFFFFFFF" StrokeThickness="1" StrokeLineJoin="Round" Name="Arrow" Margin="{TemplateBinding Control.Padding}" HorizontalAlignment="Right" VerticalAlignment="Center" SnapsToDevicePixels="False">
                                                                        
                                                                        <Path.Fill>
                                                                            
                                                                            <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                                                                
                                                                                <LinearGradientBrush.GradientStops>
                                                                                    <GradientStop Color="#FF33B5DA" Offset="0" />
                                                                                    <GradientStop Color="#FF335799" Offset="1" />
                                                                                </LinearGradientBrush.GradientStops>
                                                                            </LinearGradientBrush>
                                                                        </Path.Fill>
                                                                    </Path>
                                                                </Grid>
                                                            </Grid>
                                                            
                                                            <ControlTemplate.Triggers>
                                                                
                                                                <Trigger Property="MenuItem.IsHighlighted">
                                                                    <Setter TargetName="HighlightBorder" Property="UIElement.Visibility" Value="{x:Static Visibility.Visible}" />
                                                                    
                                                                    <Trigger.Value>
                                                                        <s:Boolean>True</s:Boolean>
                                                                    </Trigger.Value>
                                                                </Trigger>
                                                                
                                                                <Trigger Property="UIElement.IsEnabled">
                                                                    
                                                                    <Setter TargetName="Arrow" Property="Shape.Fill">
                                                                        
                                                                        <Setter.Value>
                                                                            <SolidColorBrush>#FFA5AABE</SolidColorBrush>
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                    
                                                                    <Trigger.Value>
                                                                        <s:Boolean>False</s:Boolean>
                                                                    </Trigger.Value>
                                                                </Trigger>
                                                                
                                                                <Trigger Property="Popup.HasDropShadow" SourceName="PART_Popup">
                                                                    
                                                                    <Setter TargetName="Shdw" Property="FrameworkElement.Margin">
                                                                        
                                                                        <Setter.Value>
                                                                            <Thickness>0,0,5,5</Thickness>
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                    
                                                                    <Setter TargetName="Shdw" Property="UIElement.SnapsToDevicePixels">
                                                                        
                                                                        <Setter.Value>
                                                                            <s:Boolean>True</s:Boolean>
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                    
                                                                    <Setter TargetName="Shdw" Property="mwt:SystemDropShadowChrome.Color">
                                                                        
                                                                        <Setter.Value>
                                                                            <Color>#71000000</Color>
                                                                        </Setter.Value>
                                                                    </Setter>
                                                                    
                                                                    <Trigger.Value>
                                                                        <s:Boolean>True</s:Boolean>
                                                                    </Trigger.Value>
                                                                </Trigger>
                                                            </ControlTemplate.Triggers>
                                                        </ControlTemplate>
                                                    </Setter.Value>
                                                </Setter>
                                            </Style>
                                        </MenuItem.Style>
                                    </MenuItem>
                                </Menu>
                                
                                <Path Data="M22.5767,21.035Q27,19.37,31.424,21.035A12.5,12.5,0,0,0,53.5,13A12.5,12.5,0,0,0,37.765,0.926Q27,4.93,16.235,0.926A12.5,12.5,0,0,0,0.5,13A12.5,12.5,0,0,0,22.5767,21.035z" StrokeThickness="1" Margin="2,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" SnapsToDevicePixels="False" IsHitTestVisible="False" Grid.Column="0" Grid.ColumnSpan="3">
                                    
                                    <Path.Fill>
                                        
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                            
                                            <LinearGradientBrush.GradientStops>
                                                <GradientStop Color="#A0C2CCE7" Offset="0" />
                                                <GradientStop Color="#60FFFFFF" Offset="1" />
                                            </LinearGradientBrush.GradientStops>
                                        </LinearGradientBrush>
                                    </Path.Fill>
                                    
                                    <Path.Stroke>
                                        
                                        <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                            
                                            <LinearGradientBrush.GradientStops>
                                                <GradientStop Color="#FFB7C2E3" Offset="0.2" />
                                                <GradientStop Color="#A0FFFFFF" Offset="0.9" />
                                            </LinearGradientBrush.GradientStops>
                                        </LinearGradientBrush>
                                    </Path.Stroke>
                                </Path>
                                
                                <Button Margin="3,0,2,0" Grid.Column="0">
                                    
                                    <Button.Style>
                                        
                                        <Style TargetType="Button">
                                            
                                            <Style.Resources>
                                                <ResourceDictionary />
                                            </Style.Resources>
                                            
                                            <Setter Property="FrameworkElement.OverridesDefaultStyle">
                                                
                                                <Setter.Value>
                                                    <s:Boolean>True</s:Boolean>
                                                </Setter.Value>
                                            </Setter>
                                            
                                            <Setter Property="ButtonBase.Command">
                                                
                                                <Setter.Value>
                                                    <RoutedUICommand>BrowseBack</RoutedUICommand>
                                                </Setter.Value>
                                            </Setter>
                                            
                                            <Setter Property="UIElement.Focusable">
                                                
                                                <Setter.Value>
                                                    <s:Boolean>False</s:Boolean>
                                                </Setter.Value>
                                            </Setter>
                                            
                                            <Setter Property="Control.Template">
                                                
                                                <Setter.Value>
                                                    
                                                    <ControlTemplate TargetType="Button">
                                                        
                                                        <Grid Background="#00FFFFFF" Width="24" Height="24">
                                                            
                                                            <Ellipse StrokeThickness="1" Name="Circle">
                                                                
                                                                <Ellipse.Fill>
                                                                    
                                                                    <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                                                        
                                                                        <LinearGradientBrush.GradientStops>
                                                                            <GradientStop Color="#FFFFFFFF" Offset="0" />
                                                                            <GradientStop Color="#FFCCD4E9" Offset="0.1" />
                                                                            <GradientStop Color="#FF4881D2" Offset="0.47" />
                                                                            <GradientStop Color="#FF001A5A" Offset="0.47" />
                                                                            <GradientStop Color="#FF007BD6" Offset="0.7" />
                                                                            <GradientStop Color="#FF54DAFF" Offset="0.85" />
                                                                            <GradientStop Color="#FF86FFFF" Offset="0.95" />
                                                                            <GradientStop Color="#FFFFFFFF" Offset="1" />
                                                                        </LinearGradientBrush.GradientStops>
                                                                    </LinearGradientBrush>
                                                                </Ellipse.Fill>
                                                                
                                                                <Ellipse.Stroke>
                                                                    
                                                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                                                        
                                                                        <LinearGradientBrush.GradientStops>
                                                                            <GradientStop Color="#FF6C90C4" Offset="0" />
                                                                            <GradientStop Color="#FF315BB4" Offset="0.5" />
                                                                            <GradientStop Color="#FF002091" Offset="0.5" />
                                                                            <GradientStop Color="#FF08377C" Offset="1" />
                                                                        </LinearGradientBrush.GradientStops>
                                                                    </LinearGradientBrush>
                                                                </Ellipse.Stroke>
                                                            </Ellipse>
                                                            
                                                            <Path Data="M0.37,7.69L5.74,14.2A1.5,1.5,0,1,0,10.26,12.27L8.42,10.42 14.9,10.39A1.5,1.5,0,1,0,14.92,5.87L8.44,5.9 10.31,4.03A1.5,1.5,0,1,0,5.79,1.77z" StrokeThickness="0.75" Name="Arrow" HorizontalAlignment="Center" VerticalAlignment="Center">
                                                                
                                                                <Path.Fill>
                                                                    
                                                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                                                        
                                                                        <LinearGradientBrush.GradientStops>
                                                                            <GradientStop Color="#FFFFFFFF" Offset="0.5" />
                                                                            <GradientStop Color="#FFEEEEEE" Offset="0.5" />
                                                                            <GradientStop Color="#FFB0B0B0" Offset="1" />
                                                                        </LinearGradientBrush.GradientStops>
                                                                    </LinearGradientBrush>
                                                                </Path.Fill>
                                                                
                                                                <Path.Stroke>
                                                                    
                                                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                                                        
                                                                        <LinearGradientBrush.GradientStops>
                                                                            <GradientStop Color="#FF8AB1FB" Offset="0" />
                                                                            <GradientStop Color="#FF002874" Offset="1" />
                                                                        </LinearGradientBrush.GradientStops>
                                                                    </LinearGradientBrush>
                                                                </Path.Stroke>
                                                            </Path>
                                                        </Grid>
                                                        
                                                        <ControlTemplate.Triggers>
                                                            
                                                            <Trigger Property="UIElement.IsEnabled">
                                                                
                                                                <Setter TargetName="Circle" Property="Shape.Fill">
                                                                    
                                                                    <Setter.Value>
                                                                        
                                                                        <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                                                            
                                                                            <LinearGradientBrush.GradientStops>
                                                                                <GradientStop Color="#FFFFFFFF" Offset="0" />
                                                                                <GradientStop Color="#FFEBEEF5" Offset="0.5" />
                                                                                <GradientStop Color="#FFD8DDEB" Offset="0.5" />
                                                                                <GradientStop Color="#FFDFE2F0" Offset="1" />
                                                                            </LinearGradientBrush.GradientStops>
                                                                        </LinearGradientBrush>
                                                                    </Setter.Value>
                                                                </Setter>
                                                                
                                                                <Setter TargetName="Circle" Property="Shape.Stroke">
                                                                    
                                                                    <Setter.Value>
                                                                        <SolidColorBrush>#FFB5BACE</SolidColorBrush>
                                                                    </Setter.Value>
                                                                </Setter>
                                                                
                                                                <Setter TargetName="Arrow" Property="Shape.Stroke">
                                                                    
                                                                    <Setter.Value>
                                                                        <SolidColorBrush>#B0B5BACE</SolidColorBrush>
                                                                    </Setter.Value>
                                                                </Setter>
                                                                
                                                                <Setter TargetName="Arrow" Property="Shape.Fill">
                                                                    
                                                                    <Setter.Value>
                                                                        <SolidColorBrush>#D0FFFFFF</SolidColorBrush>
                                                                    </Setter.Value>
                                                                </Setter>
                                                                
                                                                <Trigger.Value>
                                                                    <s:Boolean>False</s:Boolean>
                                                                </Trigger.Value>
                                                            </Trigger>
                                                            
                                                            <Trigger Property="UIElement.IsMouseOver">
                                                                
                                                                <Setter TargetName="Circle" Property="Shape.Fill">
                                                                    
                                                                    <Setter.Value>
                                                                        
                                                                        <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                                                            
                                                                            <LinearGradientBrush.GradientStops>
                                                                                <GradientStop Color="#FFFFFFFF" Offset="0" />
                                                                                <GradientStop Color="#FFDFEDF9" Offset="0.1" />
                                                                                <GradientStop Color="#FF3086E1" Offset="0.47" />
                                                                                <GradientStop Color="#FF003B91" Offset="0.47" />
                                                                                <GradientStop Color="#FF1793EF" Offset="0.7" />
                                                                                <GradientStop Color="#FF5AD4FF" Offset="0.85" />
                                                                                <GradientStop Color="#FFBDFFFF" Offset="0.95" />
                                                                                <GradientStop Color="#FFFFFFFF" Offset="1" />
                                                                            </LinearGradientBrush.GradientStops>
                                                                        </LinearGradientBrush>
                                                                    </Setter.Value>
                                                                </Setter>
                                                                
                                                                <Trigger.Value>
                                                                    <s:Boolean>True</s:Boolean>
                                                                </Trigger.Value>
                                                            </Trigger>
                                                            
                                                            <Trigger Property="ButtonBase.IsPressed">
                                                                
                                                                <Setter TargetName="Circle" Property="Shape.Fill">
                                                                    
                                                                    <Setter.Value>
                                                                        
                                                                        <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                                                            
                                                                            <LinearGradientBrush.GradientStops>
                                                                                <GradientStop Color="#FFC0D2F5" Offset="0" />
                                                                                <GradientStop Color="#FF5E7A9C" Offset="0.47" />
                                                                                <GradientStop Color="#FF00062D" Offset="0.47" />
                                                                                <GradientStop Color="#FF005F9F" Offset="0.7" />
                                                                                <GradientStop Color="#FF1FA4E2" Offset="0.85" />
                                                                                <GradientStop Color="#FF61DAFF" Offset="0.95" />
                                                                                <GradientStop Color="#FF48CFFF" Offset="1" />
                                                                            </LinearGradientBrush.GradientStops>
                                                                        </LinearGradientBrush>
                                                                    </Setter.Value>
                                                                </Setter>
                                                                
                                                                <Trigger.Value>
                                                                    <s:Boolean>True</s:Boolean>
                                                                </Trigger.Value>
                                                            </Trigger>
                                                        </ControlTemplate.Triggers>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </Button.Style>
                                </Button>
                                
                                <Button Margin="2,0,0,0" Grid.Column="1">
                                    
                                    <Button.Style>
                                        
                                        <Style TargetType="Button">
                                            
                                            <Style.Resources>
                                                <ResourceDictionary />
                                            </Style.Resources>
                                            
                                            <Setter Property="FrameworkElement.OverridesDefaultStyle">
                                                
                                                <Setter.Value>
                                                    <s:Boolean>True</s:Boolean>
                                                </Setter.Value>
                                            </Setter>
                                            
                                            <Setter Property="ButtonBase.Command">
                                                
                                                <Setter.Value>
                                                    <RoutedUICommand>BrowseForward</RoutedUICommand>
                                                </Setter.Value>
                                            </Setter>
                                            
                                            <Setter Property="UIElement.Focusable">
                                                
                                                <Setter.Value>
                                                    <s:Boolean>False</s:Boolean>
                                                </Setter.Value>
                                            </Setter>
                                            
                                            <Setter Property="Control.Template">
                                                
                                                <Setter.Value>
                                                    
                                                    <ControlTemplate TargetType="Button">
                                                        
                                                        <Grid Background="#00FFFFFF" Width="24" Height="24">
                                                            
                                                            <Ellipse StrokeThickness="1" Name="Circle" Grid.Column="0">
                                                                
                                                                <Ellipse.Fill>
                                                                    
                                                                    <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                                                        
                                                                        <LinearGradientBrush.GradientStops>
                                                                            <GradientStop Color="#FFFFFFFF" Offset="0" />
                                                                            <GradientStop Color="#FFCCD4E9" Offset="0.1" />
                                                                            <GradientStop Color="#FF4881D2" Offset="0.47" />
                                                                            <GradientStop Color="#FF001A5A" Offset="0.47" />
                                                                            <GradientStop Color="#FF007BD6" Offset="0.7" />
                                                                            <GradientStop Color="#FF54DAFF" Offset="0.85" />
                                                                            <GradientStop Color="#FF86FFFF" Offset="0.95" />
                                                                            <GradientStop Color="#FFFFFFFF" Offset="1" />
                                                                        </LinearGradientBrush.GradientStops>
                                                                    </LinearGradientBrush>
                                                                </Ellipse.Fill>
                                                                
                                                                <Ellipse.Stroke>
                                                                    
                                                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                                                        
                                                                        <LinearGradientBrush.GradientStops>
                                                                            <GradientStop Color="#FF6C90C4" Offset="0" />
                                                                            <GradientStop Color="#FF315BB4" Offset="0.5" />
                                                                            <GradientStop Color="#FF002091" Offset="0.5" />
                                                                            <GradientStop Color="#FF08377C" Offset="1" />
                                                                        </LinearGradientBrush.GradientStops>
                                                                    </LinearGradientBrush>
                                                                </Ellipse.Stroke>
                                                            </Ellipse>
                                                            
                                                            <Path Data="M0.37,7.69L5.74,14.2A1.5,1.5,0,1,0,10.26,12.27L8.42,10.42 14.9,10.39A1.5,1.5,0,1,0,14.92,5.87L8.44,5.9 10.31,4.03A1.5,1.5,0,1,0,5.79,1.77z" StrokeThickness="0.75" Name="Arrow" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="0.5,0" Grid.Column="0">
                                                                
                                                                <Path.Fill>
                                                                    
                                                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                                                        
                                                                        <LinearGradientBrush.GradientStops>
                                                                            <GradientStop Color="#FFFFFFFF" Offset="0.5" />
                                                                            <GradientStop Color="#FFEEEEEE" Offset="0.5" />
                                                                            <GradientStop Color="#FFB0B0B0" Offset="1" />
                                                                        </LinearGradientBrush.GradientStops>
                                                                    </LinearGradientBrush>
                                                                </Path.Fill>
                                                                
                                                                <Path.Stroke>
                                                                    
                                                                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                                                                        
                                                                        <LinearGradientBrush.GradientStops>
                                                                            <GradientStop Color="#FF8AB1FB" Offset="0" />
                                                                            <GradientStop Color="#FF002874" Offset="1" />
                                                                        </LinearGradientBrush.GradientStops>
                                                                    </LinearGradientBrush>
                                                                </Path.Stroke>
                                                                
                                                                <Path.LayoutTransform>
                                                                    <RotateTransform Angle="180"/>
                                                                </Path.LayoutTransform>
                                                                
                                                                <Path.RenderTransform>
                                                                        <ScaleTransform ScaleX="1" />
                                                                </Path.RenderTransform>
                                                            </Path>
                                                        </Grid>
                                                        
                                                        <ControlTemplate.Triggers>
                                                            
                                                            <Trigger Property="UIElement.IsEnabled">
                                                                
                                                                <Setter TargetName="Circle" Property="Shape.Fill">
                                                                    
                                                                    <Setter.Value>
                                                                        
                                                                        <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                                                            
                                                                            <LinearGradientBrush.GradientStops>
                                                                                <GradientStop Color="#FFFFFFFF" Offset="0" />
                                                                                <GradientStop Color="#FFEBEEF5" Offset="0.5" />
                                                                                <GradientStop Color="#FFD8DDEB" Offset="0.5" />
                                                                                <GradientStop Color="#FFDFE2F0" Offset="1" />
                                                                            </LinearGradientBrush.GradientStops>
                                                                        </LinearGradientBrush>
                                                                    </Setter.Value>
                                                                </Setter>
                                                                
                                                                <Setter TargetName="Circle" Property="Shape.Stroke">
                                                                    
                                                                    <Setter.Value>
                                                                        <SolidColorBrush>#FFB5BACE</SolidColorBrush>
                                                                    </Setter.Value>
                                                                </Setter>
                                                                
                                                                <Setter TargetName="Arrow" Property="Shape.Stroke">
                                                                    
                                                                    <Setter.Value>
                                                                        <SolidColorBrush>#B0B5BACE</SolidColorBrush>
                                                                    </Setter.Value>
                                                                </Setter>
                                                                
                                                                <Setter TargetName="Arrow" Property="Shape.Fill">
                                                                    
                                                                    <Setter.Value>
                                                                        <SolidColorBrush>#D0FFFFFF</SolidColorBrush>
                                                                    </Setter.Value>
                                                                </Setter>
                                                                
                                                                <Trigger.Value>
                                                                    <s:Boolean>False</s:Boolean>
                                                                </Trigger.Value>
                                                            </Trigger>
                                                            
                                                            <Trigger Property="UIElement.IsMouseOver">
                                                                
                                                                <Setter TargetName="Circle" Property="Shape.Fill">
                                                                    
                                                                    <Setter.Value>
                                                                        
                                                                        <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                                                            
                                                                            <LinearGradientBrush.GradientStops>
                                                                                <GradientStop Color="#FFFFFFFF" Offset="0" />
                                                                                <GradientStop Color="#FFDFEDF9" Offset="0.1" />
                                                                                <GradientStop Color="#FF3086E1" Offset="0.47" />
                                                                                <GradientStop Color="#FF003B91" Offset="0.47" />
                                                                                <GradientStop Color="#FF1793EF" Offset="0.7" />
                                                                                <GradientStop Color="#FF5AD4FF" Offset="0.85" />
                                                                                <GradientStop Color="#FFBDFFFF" Offset="0.95" />
                                                                                <GradientStop Color="#FFFFFFFF" Offset="1" />
                                                                            </LinearGradientBrush.GradientStops>
                                                                        </LinearGradientBrush>
                                                                    </Setter.Value>
                                                                </Setter>
                                                                
                                                                <Trigger.Value>
                                                                    <s:Boolean>True</s:Boolean>
                                                                </Trigger.Value>
                                                            </Trigger>
                                                            
                                                            <Trigger Property="ButtonBase.IsPressed">
                                                                
                                                                <Setter TargetName="Circle" Property="Shape.Fill">
                                                                    
                                                                    <Setter.Value>
                                                                        
                                                                        <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
                                                                            
                                                                            <LinearGradientBrush.GradientStops>
                                                                                <GradientStop Color="#FFC0D2F5" Offset="0" />
                                                                                <GradientStop Color="#FF5E7A9C" Offset="0.47" />
                                                                                <GradientStop Color="#FF00062D" Offset="0.47" />
                                                                                <GradientStop Color="#FF005F9F" Offset="0.7" />
                                                                                <GradientStop Color="#FF1FA4E2" Offset="0.85" />
                                                                                <GradientStop Color="#FF61DAFF" Offset="0.95" />
                                                                                <GradientStop Color="#FF48CFFF" Offset="1" />
                                                                            </LinearGradientBrush.GradientStops>
                                                                        </LinearGradientBrush>
                                                                    </Setter.Value>
                                                                </Setter>
                                                                
                                                                <Trigger.Value>
                                                                    <s:Boolean>True</s:Boolean>
                                                                </Trigger.Value>
                                                            </Trigger>
                                                        </ControlTemplate.Triggers>
                                                    </ControlTemplate>
                                                </Setter.Value>
                                            </Setter>
                                        </Style>
                                    </Button.Style>
                                </Button>
                            </Grid>
                            
                            <Grid>
                                
                                <AdornerDecorator>
                                    <ContentPresenter Content="{TemplateBinding ContentControl.Content}" ContentTemplate="{TemplateBinding ContentControl.ContentTemplate}" ContentStringFormat="{TemplateBinding ContentControl.ContentStringFormat}" Name="PART_NavWinCP" ClipToBounds="True" />
                                </AdornerDecorator>
                                <ResizeGrip IsTabStop="False" Name="WindowResizeGrip" HorizontalAlignment="Right" VerticalAlignment="Bottom" Visibility="Collapsed" />
                            </Grid>
                        </DockPanel>
                    </Border>
                    
                    <ControlTemplate.Triggers>
                        
                        <Trigger Property="NavigationWindow.ShowsNavigationUI">
                            <Setter TargetName="NavChrome" Property="UIElement.Visibility" Value="{x:Static Visibility.Collapsed}" />
                            
                            <Trigger.Value>
                                <s:Boolean>False</s:Boolean>
                            </Trigger.Value>
                        </Trigger>
                        
                        <MultiTrigger>
                            
                            <MultiTrigger.Conditions>
                                <Condition Property="Window.ResizeMode" Value="{x:Static ResizeMode.CanResizeWithGrip}" />
                                <Condition Property="Window.WindowState" Value="{x:Static WindowState.Normal}" />
                            </MultiTrigger.Conditions>
                            <Setter TargetName="WindowResizeGrip" Property="UIElement.Visibility" Value="{x:Static Visibility.Visible}" />
                        </MultiTrigger>
                        
                        <MultiTrigger>
                            
                            <!-- <MultiTrigger.Conditions>
                                
                                <Condition Property="msiam:JournalNavigationScope.CanGoForward">
                                    
                                    <Condition.Value>
                                        <s:Boolean>False</s:Boolean>
                                    </Condition.Value>
                                </Condition>
                                
                                <Condition Property="msiam:JournalNavigationScope.CanGoBack">
                                    
                                    <Condition.Value>
                                        <s:Boolean>False</s:Boolean>
                                    </Condition.Value>
                                </Condition>
                            </MultiTrigger.Conditions> -->
                            
                            <Setter TargetName="NavMenu" Property="UIElement.IsEnabled">
                                
                                <Setter.Value>
                                    <s:Boolean>False</s:Boolean>
                                </Setter.Value>
                            </Setter>
                        </MultiTrigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>
